autoprefixer = require 'gulp-autoprefixer'
rename     = require 'gulp-rename'
gulp         = require 'gulp'
paths        = require('../config.coffee').paths
prefixCfg    = require('../config.coffee').prefixConfig
sassStream   = require '../utils/sassStream.coffee'


gulp.task 'styles', ->
    gulp.src(paths.app_scss)
    .pipe sassStream()
    .pipe autoprefixer(prefixCfg)
    .pipe rename('app.css')
    .pipe gulp.dest(paths.dest)
